home *** CD-ROM | disk | FTP | other *** search
Visual Basic class definition | 1996-11-26 | 1.3 KB | 55 lines |
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- END
- Attribute VB_Name = "SmallBusiness3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = False
- Attribute VB_Exposed = False
- Option Explicit
- ' >> Best viewed in Full Module view. <<
- '
- ' Storage for debug ID number.
- Private mlngDebugID As Long
- Implements IDebug
-
- ' The private Employees collection holds
- ' the Employee objects.
- Private emps As New Employees
-
- ' Rather than declaring a variable Public
- ' Employees As New Employees, it's better
- ' coding practice to make the collection
- ' private, and create a read-only
- ' property to return the Employees
- ' collection. This way, the collection
- ' can't get accidentally released by
- ' setting the public variable to
- ' Nothing.
- Public Property Get Employees() As Employees
- Set Employees = emps
- End Property
-
- Private Sub Class_Initialize()
- mlngDebugID = DebugInit(Me)
- End Sub
-
- Private Sub Class_Terminate()
- DebugTerm Me
- End Sub
-
- ' -------- IDebug Implementation --------
- '
- ' IDebug.DebugID gives you a way to tell
- ' ====== ------- objects apart. It's
- ' required by the DebugInit, DebugTerm,
- ' and DebugShow debugging procedures
- ' declared in modFriend.
- '
- Private Property Get IDebug_DebugID() As Long
- IDebug_DebugID = mlngDebugID
- End Property
-
-
-